package com.job.servicejob.controller;


import com.job.commonutils.R;
import com.job.servicejob.entity.SalaryPayment;
import com.job.servicejob.service.SalaryPaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author myt
 * @since 2023-04-06
 */
@RestController
@RequestMapping("/servicejob/salary-payment")
public class SalaryPaymentController {
    //把service注入
    @Autowired
    private SalaryPaymentService salaryPaymentService;

//    @GetMapping("findAll")
//    public R findAllJob(){
//        List<Job> list = jobService.list(null);
//        return R.ok().data("item",list);
//
//    }
    @GetMapping("findAll")
    public R findAllSalary(){
        List<SalaryPayment> list = salaryPaymentService.list(null);
        return R.ok().data("item",list);
    }


}

